package com.info33.platform.system.entity;

import com.info33.platform.common.mvc.entity.BaseEntity;
import com.info33.platform.system.dto.SysConfigDTO;
import com.info33.platform.system.util.enums.ConfigTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 系统 - 配置
 *
 * @author admin
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysConfig extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @NotNull(groups = SysConfigDTO.PcConfig.class, message = "配置类型不能为空")
    @ApiModelProperty(value = "配置类型")
    private ConfigTypeEnum configType;

    @ApiModelProperty(value = "配置名称")
    private String configName;

    @ApiModelProperty(value = "配置内容")
    private String configContent;

}